import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/givefacialmaskact',
  component: Layout,
  redirect: '/givefacialmaskact/index',
  name: 'givefacialmaskact',
  meta: {
    title: '送面膜活动',
    icon: 'material-symbols-light:face-6-outline',
  },
  children: [
    {
      path: 'index',
      name: 'givefacialmaskactIndex',
      component: () => import('@/views/givefacialmaskact/index.vue'),
      meta: {
        title: '活动配置',
      },
    },
    {
      path: 'detail',
      name: 'givefacialmaskactDetail',
      component: () => import('@/views/givefacialmaskact/detail.vue'),
      meta: {
        title: '活动配置',
        menu: false,
        activeMenu: '/givefacialmaskact/index',
      },
    },
    {
      path: 'userIndex',
      name: 'givefacialmaskactUserIndex',
      component: () => import('@/views/givefacialmaskactUser/index.vue'),
      meta: {
        title: '活动用户',
      },
    },
    {
      path: 'uyserDetail',
      name: 'givefacialmaskactUserDetail',
      component: () => import('@/views/givefacialmaskactUser/userDetail.vue'),
      meta: {
        title: '分享记录',
        menu: false,
        breadcrumb: false,
        activeMenu: '/givefacialmaskact/userIndex',
      },
    },
  ],
}

export default routes
